
<!DOCTYPE html>
<html>

<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GM用户管理中心</title>
 <link rel="shortcut icon" href="favicon.ico">
 <link href="/lender/css/bootstrap.min.css" rel="stylesheet">
 <link href="/lender/css/font-awesome.css" rel="stylesheet">
 <link href="/lender/css/style.min.css" rel="stylesheet">
 <script type="text/javascript" src="/lender/js/jquery.min.js"></script>
 <script type="text/javascript" src="/lender/laydate/laydate.js"></script>
 <script type="text/javascript" src="/lender/js/bootstrap.min.js"></script>
   <script type="text/javascript" src="/lender/layer/layer.js"></script>
 
 <style type="text/css">
 	.menu_font{
 		font-size: 20px;
 	}
 	
 	#vip_table input{
 	
 		width: 320px;	
 	}
 	td {
	font-family: '微软雅黑';
}
 	
 </style>
 
</head>

<body class="gray-bg top-navigation white-bg" >

	<div id="wrapper white-bg" >
		<input type="hidden" id="id" value="">
		<div id="page-wrapper" class="gray-bg white-bg" >
				<div class="row">
					<div class="col-sm-12 col-xs-12">
						<form style="width:600px;height:500px;margin: auto;margin-top: 10px;" id="vip_msg">
							<table style="width:100%;height:90%;margin: auto;" id="vip_table">
								<tr style="font-size: 25px;height:40px;width: 100%">
									<td align="right" style="width: 145px;">用户姓名：</td>
									<td><input type="text"  class="form-control" value="$!lender.lenderName"  name="lenderName"></td>
								</tr>
								<tr style="font-size: 25px;height:40px;width: 100%">
									<td align="right" style="width: 145px;">身份证：</td>
									<td><input type="text"  class="form-control"  value="$!lender.idCard" name="idCard"></td>
								</tr>
								<tr style="font-size: 25px;height:40px;width: 100%">
									<td align="right" style="width: 145px;">手机号码：</td>
									<td><input type="text"  class="form-control" value="$!lender.mobile" name="mobile"></td>
								</tr>
								<tr style="font-size: 25px;height:40px;width: 100%">
									<td align="right" style="width: 145px;">现住地址：</td>
									<td><input type="text"  class="form-control" value="$!lender.address" name="address"></td>
								</tr>
								<tr style="font-size: 25px;height:40px;width: 100%">
									<td align="right" style="width: 145px;">押金：</td>
									<td><input type="text"  class="form-control" value="$!lender.deposit" name="deposit"></td>
								</tr>
								<tr style="font-size: 25px;height:40px;width: 100%">
									<td align="right" style="width: 145px;">总积分：</td>
									<td><input type="text"  class="form-control" value="$!lender.amountLoan" name="amountLoan"></td>
								</tr>
								
								<tr style="font-size: 25px;height:40px;width: 100%">
									<td align="right" style="width: 145px;">月积分：</td>
									<td><input type="text"  class="form-control" value="$!lender.monthScore" name="monthScore"></td>
								</tr>
								<tr style="font-size: 25px;height:40px;width: 100%">
									<td align="right" style="width: 145px;">积分时间：</td>
									<td>
										<input type="text" id="loanDate" readonly="readonly"  class="form-control layer-date" value="$!lender.loanDate" name="loanDate">
									</td>
								</tr>
							</table>
							<input type="hidden" name="id" value="$!lender.id">
						</form>
					</div>
				</div>
			</div>
		</div>
</body>
<script type="text/javascript">
function gm(){};
gm.ajax = function(json){
	jQuery.ajax(json);
}

var start = {
        elem: "#loanDate",
        theme: '#1ab394',
    /*     format: "YYYY-MM-DD hh:mm:ss",
        //min: laydate.now(),
        max: "2099-06-16 23:59:59",
        istime: true,
        istoday: false,
        choose: function (datas) {
            end.min = datas;
            end.start = datas
        } */
    };
/**
 * 初始化时间插件
 */
laydate.render(start);




function addVIPById(){
	var sjson = $('#vip_msg').serialize();
	gm.ajax({
		url:'/lender/lenderController/insertIntoLender.do',
		type:'post',
		data:sjson,
		dataType:'json',
		success:function(data){
			parent.layer.msg(data.msg,{icon:1});
		},
		error:function(){
			parent.layer.msg('连接超时！', {icon: 2});
		}});
}

function checkIsNull(){
	var list = $('#vip_table input');
	for(var i=0;i<list.length;i++){
		var value = $(list[i]).val();
		var type =  $(list[i]).parent().prev().html();
		if(value == null || value == ''){
			layer.tips(type+'不能为空！', $(list[i]));
			return {type:false,msg:type+'不能为空！'};
		}
	}
	return {type:true,msg:'填写完成！'};
}





</script>
</html>
